package com.bwda.dsrs.filecenter.domain.form.sensitivewords;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 敏感字段更新参数Form
 *
 * @author zhangyinmei
 * @date 2019年4月29日
 */
@Data
@ApiModel(description = "敏感字段")
public class SensitiveWordsUpdateForm {

	@ApiModelProperty(value = "ID", required = true)
	@NotNull(message = "ID不能为空！")
	private Integer id;

	@ApiModelProperty(value = "敏感字段名称")
	@Size(min = 0, max = 64 ,message = "最长不超过64，请重新输入！")
	private String name;

	@ApiModelProperty(value = "敏感字段内容")
	@Size(min = 0, max = 255 ,message = "最长不超过255，请重新输入！")
	private String sensitiveContent;

	@ApiModelProperty(value = "0关键字1正则")
	@Min(value = 0 ,message = "0:关键字 1:正则 请正确输入！")
	@Max(value = 1 ,message = "0:关键字 1:正则 请正确输入！")
	private Integer matchType;

	@ApiModelProperty(value = "备注")
	@Size(min = 0, max = 512 ,message = "最长不超过512，请重新输入！")
	private String remark;

	@ApiModelProperty(value = "0在用 1停用")
	@Min(value = 0 ,message = "0:在用 1:停用 请正确输入！")
	@Max(value = 1 ,message = "0:在用 1:停用 请正确输入！")
	private Integer status;
}